//
//  MTUserModel.h
//  MeToo
//
//  Created by 俊松何 on 2018/7/5.
//  Copyright © 2018年 tianxie. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MTUserDataManager;

@interface MTUserLevel : NSObject

@property(nonatomic,copy) NSString *image;
@property(nonatomic,copy) NSString *userId;
@property(nonatomic,copy) NSString *title;

@property(nonatomic,assign) NSInteger integral;
@property(nonatomic,assign) NSInteger level;
@property(nonatomic,assign) NSInteger vip;


@end

@interface MTUserInfo : NSObject
@property(nonatomic,copy) NSString *cover;
@property(nonatomic,copy) NSString *signature;
@property(nonatomic,copy) NSString *userId;
@property(nonatomic,assign) NSInteger fansCnt;
@property(nonatomic,assign) NSInteger followCnt;
@property(nonatomic,assign) NSInteger replayCnt;
@property(nonatomic,assign) NSInteger likeCnt;
@end

@interface MTUserWalletInfo : NSObject

@property(nonatomic,copy) NSString *symbol;
@property(nonatomic,assign) double vip;
@property(nonatomic,assign) int bindPhone;
@property(nonatomic,assign) int setPassword;

@end

@interface LiveStatus : NSObject

@property(nonatomic,assign) NSInteger id;
@property(nonatomic,assign) BOOL isBlack;
@property(nonatomic,assign) BOOL isManager;
@property(nonatomic,assign) BOOL isNoSpeaking;
@property(nonatomic,copy) NSString *targetUserId;
@property(nonatomic,copy) NSString *userId;

@end


@interface MTUserModel : NSObject

@property(nonatomic,copy) NSString *account;
@property(nonatomic,copy) NSString *avatar;
@property(nonatomic,copy) NSString *gender;
@property(nonatomic,copy) NSString *name;
@property(nonatomic,copy) NSString *phone;
@property(nonatomic,copy) NSString *countryCode;
@property(nonatomic,copy) NSString *qrCode;
@property(nonatomic,copy) NSString *token;
@property(nonatomic,copy) NSString *userId;
@property(nonatomic,assign) BOOL follow;
@property(nonatomic,strong) MTUserLevel *level;
@property(nonatomic,strong) MTUserInfo *info;
@property(nonatomic,strong) MTUserWalletInfo *wallet;
@property(nonatomic,strong) LiveStatus *userLiveStatus;

+(void)saveCurrentUser:(MTUserModel *)user;

+(MTUserModel *)currentUser;

+(void)logout;

+(void)updateCurrentUserInfo;

@end

@interface MTUserDataManager : NSObject

+(instancetype)manager;

-(void)saveCurrentUser:(MTUserModel *)user;

@property(nonatomic,strong) MTUserModel *cutrrentUser;


-(void)logout;

@end



